package com.newcoder.community.dao;

import com.newcoder.community.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author edison
 * @version 2023
 * @date 2024/1/25 17:27
 */
@Mapper
public interface CommentMapper {

    //查询某个实体的评论
    List<Comment> selectCommentsByEntity(int entityType, int entityId, int offset, int limit);


    //查询某个实体的评论数量
    int selectCountByEntity(int entityType, int entityId);

    //增加评论
    int insertComment(Comment comment);
}
